package org.csu.petserver.service;

import org.csu.petserver.domain.Category;
import org.csu.petserver.domain.Item;
import org.csu.petserver.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductInfo {
    public List<Product> searchProductInCertainCategory(Category category, String keyword);
    public List<Product> searchProductInAllCategory(String keyword);
    public List<Item> getAllItemByProduct(Product product);
    public List<Item> getAllItemByProductId(String productId);

    public boolean addProduct(Product product);

    public boolean updateProduct(Product product);

    public boolean deleteProduct(Product product);

    public List<Item> getAllItem();

    public Product getProductById(String productId);
}
